﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity16 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Info_TotalAmount_Value",
                table: "Orders",
                newName: "Info_CommodityTotalAmount_Value");

            migrationBuilder.RenameColumn(
                name: "Info_TotalAmount_MoneyType",
                table: "Orders",
                newName: "Info_CommodityTotalAmount_MoneyType");

            migrationBuilder.RenameColumn(
                name: "ShipInfo_Address",
                table: "Orders",
                newName: "ShipInfo_Privonce");

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "Refunds",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "Refunds",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Description",
                table: "Refunds",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "OrderNumber",
                table: "Refunds",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Remark",
                table: "Refunds",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Status",
                table: "Refunds",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RefundAmount_MoneyType",
                table: "Refunds",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<double>(
                name: "RefundAmount_Value",
                table: "Refunds",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<string>(
                name: "Info_AdminRemark",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Info_CommodityTotalCount",
                table: "Orders",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<DateTime>(
                name: "Info_FinishedTime",
                table: "Orders",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<DateTime>(
                name: "Info_PaymentTime",
                table: "Orders",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<string>(
                name: "Info_Remark",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "Info_ShipTime",
                table: "Orders",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_City",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_County",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_CustomWuliuInfo",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ShipInfo_DeliveryAddressId",
                table: "Orders",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_DetailedAddress",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ShipInfo_ShippingTemplateId",
                table: "Orders",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ShipInfo_WuliuType",
                table: "Orders",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_Wuliu_ExpressName",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_Wuliu_ExtensionData",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_Wuliu_Number",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_Wuliu_Type",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Info_AdjustmentAmount_MoneyType",
                table: "Orders",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<double>(
                name: "Info_AdjustmentAmount_Value",
                table: "Orders",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<string>(
                name: "EvaluateInfo_Pictures_StringValue",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreationTime",
                table: "OrderLogs",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "OrderLogs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Description",
                table: "OrderLogs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "OrderNumber",
                table: "OrderLogs",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "Description",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "OrderNumber",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "Remark",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "Status",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "RefundAmount_MoneyType",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "RefundAmount_Value",
                table: "Refunds");

            migrationBuilder.DropColumn(
                name: "Info_AdminRemark",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_CommodityTotalCount",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_FinishedTime",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_PaymentTime",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_Remark",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_ShipTime",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_City",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_County",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_CustomWuliuInfo",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_DeliveryAddressId",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_DetailedAddress",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_ShippingTemplateId",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_WuliuType",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_Wuliu_ExpressName",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_Wuliu_ExtensionData",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_Wuliu_Number",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_Wuliu_Type",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_AdjustmentAmount_MoneyType",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "Info_AdjustmentAmount_Value",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "EvaluateInfo_Pictures_StringValue",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "CreationTime",
                table: "OrderLogs");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "OrderLogs");

            migrationBuilder.DropColumn(
                name: "Description",
                table: "OrderLogs");

            migrationBuilder.DropColumn(
                name: "OrderNumber",
                table: "OrderLogs");

            migrationBuilder.RenameColumn(
                name: "Info_CommodityTotalAmount_Value",
                table: "Orders",
                newName: "Info_TotalAmount_Value");

            migrationBuilder.RenameColumn(
                name: "Info_CommodityTotalAmount_MoneyType",
                table: "Orders",
                newName: "Info_TotalAmount_MoneyType");

            migrationBuilder.RenameColumn(
                name: "ShipInfo_Privonce",
                table: "Orders",
                newName: "ShipInfo_Address");
        }
    }
}
